package cn.doitedu.datayi.data_service.controller;

import cn.doitedu.datayi.data_service.vo.EventEntity;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
public class HelloController {

    @RequestMapping("/hello/a")
    public String hello(){
        return "hello";
    }


    @RequestMapping(method = RequestMethod.POST,value = "/api")
    @CrossOrigin(origins = "http://localhost:8000")
    public String api(@RequestBody List<EventEntity> entitys){
        System.out.println(entitys.get(0));
        return "ok";

    }

}
